<template>
  <div class="index-home">
      1234
      <div class="card-menu">
        <tree-menu :list="treeMenusData" :isParent='1'></tree-menu>
      </div>
  </div>
</template>

<script>
import treeMenu from './treeMenu.vue'
export default {
    name:"INDEX",
    components:{
      treeMenu
    },
    data(){
      return{
        treeMenusData: [ // 数据格式
            {
              value: "父报表1",
              showBtn:'未通过',
              children: [
                {
                  value: "子报表1-1",
                  children: [],
                  showBtn:'未通过',
                }
              ]
            },
            {
              value: "父报表2",
              children: [],
              showBtn:'已通过',
            },
            {
              value: "目录",
              isMenu:true,
              children: []
            },
            {
              value: "目录22",
              isMenu:true,
              children: [
                {
              value: "目录22-22",
              isMenu:true,
              children: [
                 {
                  value: "父报表3333",
                  children: [],
                  showBtn:'未通过',
                }
              ]
            },
               
              ]
            }
          ]
                }
    }
}
</script>
<style >
  .card-menu{
    margin: 100px auto;
    width: 50%;
    height: 600px;
    border:1px solid red;
  }
</style>